import http from '@/utils/request.js';

// 签到
// export const signIn = (data) => {
// 	return http.post('/repair/maintain/sign/in',data,1)
// }

// 合同统计
export const getContractStatusList = (data) => {
	// return http.get('/repair/buildingcontractplus/getContractStatusList',data);
	return http.request({
		url: '/repair/buildingcontractplus/getContractStatusList',
		method: 'get',
		data
	});
};
// 合同统计详情
export const getContractDetailList = (data) => {
	// return http.get('/repair/buildingcontractplus/list', data);
	return http.request({
		url: '/repair/buildingcontractplus/list',
		method: 'get',
		data
	});
};

// 合同统计数量
export const getContractTotalCount = (data) => {
	// return http.get('/repair/buildingcontractplus/getTotalDesc', data);
	return http.request({
		url: '/repair/buildingcontractplus/getTotalDesc',
		method: 'get',
		data
	});
};

//* ******************* 合同维保统计 ********************

// 合同在保统计
export const getContractStatisticInfo = (data) => {
	// return http.get('/repair/buildingcontractplus/getContractStatisticInfo', data);
	return http.request({
		url: '/repair/buildingcontractplus/getContractStatisticInfo',
		method: 'get',
		data
	});
};

// 合同在保列表统计
export const getBuildingCount = (data) => {
	// return http.get('/repair/buildingcontractplus/getBuildingCount', data);
	return http.request({
		url: '/repair/buildingcontractplus/getBuildingCount',
		method: 'get',
		data
	});
};
// 合同在保列表明细
export const getElevatorListInfo = (data) => {
	// return http.post('/repair/buildingcontractplus/getElevatorList', data, true);
	return http.request({
		url: '/repair/buildingcontractplus/getElevatorList',
		method: 'post',
		data,
		textJson: true,
	});
};
